#!/bin/bash

connect() {
    echo "connecting to server"
}

disconnect() {
    echo "disconnect from the server"
}

read_file() {
    echo "reading file from fs"
}

user=alice
pass=abcd
host=192.168.1.1
port=3306

# 检查命令行参数
if test $# -ne 3; then
    echo "usage: $(basename $0) first second third" >&2
    exit 1
fi

connect
read_file
disconnect
